package com.hdax.dm.rest.service;


import com.hdax.dm.dao.base.DmAreaMapper;
import com.hdax.dm.entity.base.DmArea;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping(path = "/base")
@Api(value = "城市接口",tags = "城市接口")
public class DmBaseAreaRestService {

    @Resource
    private DmAreaMapper areaMapper;

    @ApiOperation(value = "查询所有城市")
    @PostMapping(path = "/getArea")
    public List<DmArea> getArea(){
        return areaMapper.selectList(null);
    }
}
